package com.qf.day07.poly;

/**
 * 武器类
 * 父类
 */
public class Weapon {

    private String name;

    private int damage;
    // 范围
    private int range;
    // 耐久度
    private int durability = 100;
    // 英雄使用该武器需要达到的等级
    private int levelLimit;

    public Weapon() {
    }

    public Weapon(String name, int damage, int range, int durability, int levelLimit) {
        this.name = name;
        this.damage = damage;
        this.range = range;
        this.durability = durability;
        this.levelLimit = levelLimit;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getDamage() {
        return damage;
    }

    public void setDamage(int damage) {
        this.damage = damage;
    }

    public int getRange() {
        return range;
    }

    public void setRange(int range) {
        this.range = range;
    }

    public int getDurability() {
        return durability;
    }

    public void setDurability(int durability) {
        this.durability = durability;
    }

    public int getLevelLimit() {
        return levelLimit;
    }

    public void setLevelLimit(int levelLimit) {
        this.levelLimit = levelLimit;
    }

    @Override
    public String toString() {
        return "Weapon{" +
                "name='" + name + '\'' +
                ", damage=" + damage +
                ", range=" + range +
                ", durability=" + durability +
                ", levelLimit=" + levelLimit +
                '}';
    }
}
